package com.children.growth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.children.growth.entity.MentalHealth;

import java.util.List;
import java.util.Map;

/**
 * 心理健康服务接口
 * 
 * @author children
 * @since 1.0.0
 */
public interface MentalHealthService {

    /**
     * 创建心理健康记录
     */
    boolean createMentalHealth(MentalHealth mentalHealth);

    /**
     * 获取心理健康记录列表
     */
    Page<MentalHealth> getMentalHealthList(Long userId, Integer pageNum, Integer pageSize, String warningLevel, String startDate, String endDate);

    /**
     * 获取心理健康记录详情
     */
    MentalHealth getMentalHealthById(Long id);

    /**
     * 更新心理健康记录
     */
    boolean updateMentalHealth(MentalHealth mentalHealth);

    /**
     * 删除心理健康记录
     */
    boolean deleteMentalHealth(Long id);

    /**
     * 进行心理健康评估
     */
    Map<String, Object> assessMentalHealth(Long userId, Map<String, Object> answers);

    /**
     * 获取心理健康统计
     */
    Map<String, Object> getMentalHealthStatistics(Long userId);

    /**
     * 获取心理健康建议
     */
    String getMentalHealthAdvice(Integer assessmentType, Integer score);

    /**
     * 获取情绪趋势数据
     */
    List<Map<String, Object>> getEmotionTrend(Long userId, Integer days);

    /**
     * 确认评估结果
     */
    boolean confirmAssessment(Long id);
} 